package com.xdf.xzymanagementsystem.controller;

import com.xdf.xzymanagementsystem.dao.JcSimpleMapper;
import com.xdf.xzymanagementsystem.entity.JcContactcompany;
import com.xdf.xzymanagementsystem.entity.JcSimple;
import com.xdf.xzymanagementsystem.service.JcSimpleService;
import com.xdf.xzymanagementsystem.service.OrderDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 注意要有依赖：
 *         <dependency>
 *             <groupId>io.springfox</groupId>
 *             <artifactId>springfox-swagger2</artifactId>
 *             <version>2.9.2</version>
 *         </dependency>
 *         <dependency>
 *             <groupId>io.springfox</groupId>
 *             <artifactId>springfox-swagger-ui</artifactId>
 *             <version>2.9.2</version>
 *         </dependency>
 * 同时入口类头上使用注解：@EnableSwagger2
 * @Description : 控制层，代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2025-3-22 10:27:04
 */
@Api(tags = "单据,明细,订单")
@CrossOrigin
@RestController
@RequestMapping("/jcSimple")
public class JcSimpleController {
    @Autowired
    private JcSimpleService service;
    //=================以上是自动生成的代码，自定义代码请写在下面==================

    /**
     * @Description : 查询方法
     * @Return : java.util.List
     * @Author : 张柯
     * @Date : 2020-12-31 14:42:38
     */
    @ApiOperation(value = "查询方法", httpMethod = "GET", notes = "自动生成的查询方法")
    @RequestMapping(value = "/listQuery", method = RequestMethod.GET)
    public List<JcSimple> query(JcSimple record) throws Exception {
        return service.listQuery(record);
    }
}